package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderSettingMapper {
    @Select("select count(*) from health_chuanzhi.t_ordersetting where orderDate = #{orderDate}")
    Integer countByDate(Date orderDate);
    void update(OrderSetting orderSetting);
@Insert("insert into health_chuanzhi.t_ordersetting (orderDate, number)"+"values (#{orderDate},#{number})")
    void insert(OrderSetting orderSetting);

@Select("SELECT * from health_chuanzhi.t_ordersetting")
    List<OrderSetting> getAll();

}
